package com.xiaoshuidi.cloud.module.contract.controller.admin.contract.vo.company;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiaoshuidi.cloud.framework.common.pojo.PageParam;
import com.xiaoshuidi.cloud.module.contract.util.date.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 企业客户分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CompanyContractPageReqVO extends PageParam {

    @Schema(description = "企业名称")
    private String companyName;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = DateUtils.FORMAT_DATE)
    @JsonFormat(pattern = DateUtils.FORMAT_DATE, timezone = TIME_ZONE_DEFAULT)
    private LocalDate startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = DateUtils.FORMAT_DATE)
    @JsonFormat(pattern = DateUtils.FORMAT_DATE, timezone = TIME_ZONE_DEFAULT)
    private LocalDate endTime;

    @Schema(description = "合同状态")
    private String status;

    @Schema(description = "企业合同编号")
    private String contractNo;

}
